package com.ims.core.doc.service.impl;

import java.util.List;
import com.ims.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ims.core.doc.mapper.TInCollectNonInvoiceMapper;
import com.ims.core.doc.domain.TInCollectNonInvoice;
import com.ims.core.doc.service.ITInCollectNonInvoiceService;

/**
 * 采集非增值税发票结果Service业务层处理
 *
 * @author IMS
 * @date 2024-11-20
 */
@Service
public class TInCollectNonInvoiceServiceImpl implements ITInCollectNonInvoiceService
{
    @Autowired
    private TInCollectNonInvoiceMapper tInCollectNonInvoiceMapper;

    /**
     * 查询采集非增值税发票结果
     *
     * @param id 采集非增值税发票结果主键
     * @return 采集非增值税发票结果
     */
    @Override
    public TInCollectNonInvoice selectTInCollectNonInvoiceById(Long id)
    {
        return tInCollectNonInvoiceMapper.selectTInCollectNonInvoiceById(id);
    }

    /**
     * 查询采集非增值税发票结果列表
     *
     * @param tInCollectNonInvoice 采集非增值税发票结果
     * @return 采集非增值税发票结果
     */
    @Override
    public List<TInCollectNonInvoice> selectTInCollectNonInvoiceList(TInCollectNonInvoice tInCollectNonInvoice)
    {
        return tInCollectNonInvoiceMapper.selectTInCollectNonInvoiceList(tInCollectNonInvoice);
    }

    /**
     * 新增采集非增值税发票结果
     *
     * @param tInCollectNonInvoice 采集非增值税发票结果
     * @return 结果
     */
    @Override
    public int insertTInCollectNonInvoice(TInCollectNonInvoice tInCollectNonInvoice)
    {
        tInCollectNonInvoice.setCreateTime(DateUtils.getNowDate());
        return tInCollectNonInvoiceMapper.insertTInCollectNonInvoice(tInCollectNonInvoice);
    }

    /**
     * 修改采集非增值税发票结果
     *
     * @param tInCollectNonInvoice 采集非增值税发票结果
     * @return 结果
     */
    @Override
    public int updateTInCollectNonInvoice(TInCollectNonInvoice tInCollectNonInvoice)
    {
        tInCollectNonInvoice.setUpdateTime(DateUtils.getNowDate());
        return tInCollectNonInvoiceMapper.updateTInCollectNonInvoice(tInCollectNonInvoice);
    }

    /**
     * 批量删除采集非增值税发票结果
     *
     * @param ids 需要删除的采集非增值税发票结果主键
     * @return 结果
     */
    @Override
    public int deleteTInCollectNonInvoiceByIds(Long[] ids)
    {
        return tInCollectNonInvoiceMapper.deleteTInCollectNonInvoiceByIds(ids);
    }

    /**
     * 删除采集非增值税发票结果信息
     *
     * @param id 采集非增值税发票结果主键
     * @return 结果
     */
    @Override
    public int deleteTInCollectNonInvoiceById(Long id)
    {
        return tInCollectNonInvoiceMapper.deleteTInCollectNonInvoiceById(id);
    }
}
